package com.wgy.day2;

/**
 * Created by pc on 2020/10/31 20:22
 * Description: Demo1
 */
public class Demo02IfElseEXT {
    public static void main(String[] args) {
        int x =-9;
        int y;
        if (x >= 30) {
            y = x - 10;
        }else if (1 < x && x < 30) {
            y = x * 2 + 1;
        }else{
            y=x+1;
        }
        System.out.println(y);
    }
}
